Here is how we go about generate an Apple Event with object specifier. We are looking for text in the top window and we want a word where the first character is "o" and the third characer is "e".
So the first thing is to create an Apple Event:
So you enter the event class and ID and then hit return and you will be asked to enter parameters.
You indicate the direct parameter is an object and then hit return.
You then say you want a word that satisfies some test. Then you hit the container button to enter its content.
You indicates the container is also an object.
So now you need to enter information about the window object. The container is null, so you only need to enter the index number by hitting the data button.
You indicate that you want the first window and hit OK.
Now you have completed the specification of the window, so you hit return.
Now you are ready to enter the data - the test criteria.
You indicate it is a logical expression.
You are asked the type of logical expression and you say it is a AND.
You are then asked for the first term in the list.
You say it is a compare, and you will be asked to fill up the compare.
You say it is an equality compare, you then hit the object 1 button to enter what will be compared.
You indicate object 1 is an object.
You get to specify the object recursively again. You hit the container button.
You indicate that the containter is the object being examined.
Now you can enter the selection data.
And the selection data is the first character.
Now the object 1 is completely specified.
So now you are ready to tackle object 2.
And object 2 is just the character "o".
So now the comparison is specified and you hit return.
Now you enter the second term in the AND operation, and it is another compare.
So you got to enter the compare again, you repeat what you did just now except this time the third character should equal "e".
You are done with the second term, and you will be asked for the third term.
Since there is no third term, you hit the no more button.
Now the direct object is completely specified.
You then specify that the second parameter is that you want the data to be in text format.
You would be asked for a third parameter, you hit the no more button.
You have now completely specify the Apple Event and is now ready to send it off.